#include  <iostream>
using  namespace  std;

int Div(int x,int y)
{
    if(y==0)
        throw y;
    return x/y;
}

int main()
{
    try
    {
        cout << "7 / 3 = " << Div(7,3) <<endl;
        cout << "5 / 0 = " << Div(5,0) <<endl;
    }
    catch(int)
    {
         cout<<"除数为0,错误！"<<endl;
    }
    cout<<"end!"<<endl;
    return 0;
}
